#
#
SHELL = /bin/bash
FFLAG = -O3
FCOMP = gfortran -c ${FFLAG}
LINK  = gfortran 
LFFTW = -L/usr/local/lib/fftw2/lib
LIBS  = -lsrfftw -lsfftw
OBJ   = hd.o
OBJI  = ic.o

.SUFFIXES: .o .f90

.f90.o:
	${FCOMP} $*.f90

hd:  ${OBJ}
	${LINK} ${OBJ} ${LFFTW} ${LIBS} -o hd

ic:  ${OBJI}
	${LINK} ${OBJI} ${LFFTW} ${LIBS} -o ic

clean:
	        rm -f *.o *.mod

xclean:
	        rm -f *.o *.mod hd ic


